package com.example.demo.pojo;

/**
 * @Description:
 * @Auther:ccc
 * @Date:2022/11/12 20:29
 */
public class ResultPojo {

    private String retCode;
    private String retMsg;
    private Object object;

    public ResultPojo(String retCode, String retMsg) {
        this.retCode = retCode;
        this.retMsg = retMsg;
    }

    public ResultPojo(ResultCode resultCode) {
        this.retCode = resultCode.getCode();
        this.retMsg = resultCode.getMsg();
    }

    public ResultPojo(Object object) {
        this.retCode = "0000";
        this.retMsg = "success";
        this.object = object;
    }

    public String getRetCode() {
        return retCode;
    }

    public void setRetCode(String retCode) {
        this.retCode = retCode;
    }

    public String getRetMsg() {
        return retMsg;
    }

    public void setRetMsg(String retMsg) {
        this.retMsg = retMsg;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
